//
//  PCDDataBaseModel.h
//  PCDBank
//
//  Created by lyy on 2021/3/17.
//  Copyright © 2021 DK. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kPCDDataBase @"PCDDateBase.db"
#define kPCDLoginSessionKey @"_CURRENT_SESSION"


NS_ASSUME_NONNULL_BEGIN

@interface PCDDataBaseModel : NSObject

+ (instancetype)shareModel;

/// 额外数据
@property (nonatomic, strong) id extraData;

/// 应用模式 内存存储
@property (nonatomic, strong) NSMutableDictionary *memoryStorage;

/// 获取存储信息
- (NSString *)getStorageInfoFromDataBase;

/// 设置存储信息
/// @param data 传入参数
- (NSString *)setStorageToDataBaseWith:(NSDictionary *)data;

/// 获取存储信息
/// @param data 传入参数
- (NSString *)getStorageFromDataBaseWith:(NSDictionary *)data;


/// 删除存储信息
/// @param data 传入参数
- (NSString *)removeStorageFromDataBaseWith:(NSDictionary *)data;

/// 删除全部存储信息
- (NSString *)clearStorageFromDataBase;

@end

NS_ASSUME_NONNULL_END
